
package io.jpress.module.drama;

import com.jfinal.core.Controller;

import io.jboot.core.listener.JbootAppListenerBase;
import io.jpress.core.menu.MenuGroup;
import io.jpress.core.module.ModuleListener;


import java.util.List;


public class DramaModuleListener extends JbootAppListenerBase implements ModuleListener {


    @Override
    public String onRenderDashboardBox(Controller controller) {

        return "article/_dashboard_box.html";
    }

    @Override
    public String onRenderToolsBox(Controller controller) {
        return "article/_tools_box.html";
    }

    @Override
    public void onConfigAdminMenu(List<MenuGroup> adminMenus) {

        MenuGroup menuGroup = new MenuGroup();
        menuGroup.setId("drama");
        menuGroup.setText("山乡大戏");
        menuGroup.setIcon("<i class=\"fa fa-fw fa-file-text\"></i>");
        menuGroup.setOrder(17);
        adminMenus.add(menuGroup);

    }

    @Override
    public void onConfigUcenterMenu(List<MenuGroup> ucenterMenus) {

    }


}
